//
//  CYProgress.m
//  CreditAddressBook
//
//  Created by Lee on 15/7/29.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import "CYProgress.h"

@implementation CYProgress

- (NSMutableAttributedString *)message {
    NSMutableAttributedString *attrStr = nil;
    if (self.success) {
        attrStr = [[NSMutableAttributedString alloc]initWithString:@"上传成功"];
    } else {
        attrStr = [[NSMutableAttributedString alloc]initWithString:@"上传失败"];
        [attrStr addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, attrStr.length)];
    }
    return attrStr;
}
@end
